using System;
using System.Linq;

namespace webapi.Domain.Repository
{
    public interface IRepository<T>
    {
        T getById(Guid id);

        IQueryable<T> Table{get;}

        T Add(T entity);

        void Update(T entity);

        void Delete(T entity);
    }
}